<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>套餐信息</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="css/AllMeal.css">

    <link type="text/css" rel="stylesheet" href="css/smartmenu.css">
    <script type="text/javascript" src="<%=basePath%>/jslib/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/Menu.js"></script>

    <script language="JavaScript" type="text/javascript">
        function topage(page) {
            var form = document.getElementById("myform");
            document.getElementById("page")
                    .setAttribute("value", page);
            form.submit();
        }
    </script>
</head>

<body style="text-align: center;">
<%@ include file="/page/share/menu.jsp" %>

<div id="content">
    <form method="post" id="myform" action="Meal.action">
        <input type="hidden" name="page" value="" id="page"/>
        <table align="center"  border="1"  id="list">
            <thead align="center">
            <tr>
                <td colspan="10" bgcolor="6f8ac4" align="right">
                    <%@ include file="/page/share/fenye.jsp" %>
                </td>
            </tr>
            <tr>
                <td>
                    序号
                </td>
                <td>
                    套餐名称
                </td>
                <td>
                    节假日
                </td>
                <td>
                    套餐使用开始时间
                </td>
                <td>
                    套餐使用结束时间
                </td>
                <td>
                    情侣房价格
                </td>
                <td>
                    标准房价格
                </td>
                <td>
                    中房价格
                </td>
                <td>
                    大房价格
                </td>
                <td>
                    VIP房价格
                </td>
                <c:if test="${a!='ROLE_USER'}">
                    <c:if test="${a!='ROLE_STAFF'}">
                        <td>
                            编辑
                        </td>
                    </c:if>
                </c:if>
            </tr>
            </thead>
            <tr>
                <s:iterator value="pageView.records" var="m" status="n">
            <tr>
                <td>
                    <s:property value="#n.index+1"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.mealName"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.holiday"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.beginTime"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.endTime"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.coupleRoomPrice"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.standardRoomPrice"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.middleRoomPrice"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.bigRoomPrice"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#m.vipRoomPrice"/>
                    &nbsp;
                </td>
                <c:if test="${a!='ROLE_USER'}">
                    <c:if test="${a!='ROLE_STAFF'}">
                        <td>
                            <a href="Meal!loadMeal.action?mealId=${m.mealId}">
                                <img src="<%=path%>/img/edit.gif" width="15" height="16" border="0"
                                     alt="编辑"/>
                            </a>
                        </td>
                    </c:if>
                </c:if>
            </tr>
            </s:iterator>

            </tr>
        </table>
    </form>
    <div id="modify">
        <c:if test="${a!='ROLE_USER'}">
            <c:if test="${a!='ROLE_STAFF'}">
                <form method="post" action="Meal!findSpecialMeal.action?flag=1">
                    <table>
                        <tr>
                            <td align="right">套餐名称：</td>
                            <td>
                                <input type="text" name="mealName" size="15">
                            </td>
                            <td align="right" style="margin-left: 100px;">节假日：</td>
                            <td align="left">
                                <select name="holiday">
                                    <option value="">--请选择--</option>
                                    <option value="假日">假日（周五20:00-周日20:00以及法定假期）</option>
                                    <option value="平日">平日（周日20:00-周四20:00）</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">开始时段：</td>
                            <td>
                                <select name="beginTime">
                                    <option value="">--请选择--</option>
                                    <option value="12:00:00">12:00:00</option>
                                    <option value="20:00:00">20:00:00</option>
                                    <option value="00:00:00">00:00:00</option>
                                </select>
                            </td>
                            <td align="right">结束时段：</td>
                            <td>
                                <select name="endTime">
                                    <option value="">--请选择--</option>
                                    <option value="20:00:00">20:00:00</option>
                                    <option value="00:00:00">00:00:00</option>
                                    <option value="05:30:00">05:30:00</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input type="submit" name="sure" value="确定" id="stb" class="btn">
                            </td>
                        </tr>
                    </table>
                </form>
            </c:if>
        </c:if>
    </div>
</div>


<div id="bottom">
    <ul>
        <li>
            联系我们：
            <a href="mailto:willsonz@qq.com?subject=KTV综合管理系统">willsonz@qq.com</a>
        </li>
    </ul>
    <ul>
        <li>
            ©&nbsp;Made By Cloud Team.
        </li>
    </ul>
</div>
</body>
</html>
